package com.tuo51.childcare.domain.photoalbum;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Data
@Table(name = "tb_photo_album_template_page")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class PhotoAlbumTemplatePage extends Domain {

    @Column(columnDefinition = " varchar(50)  COMMENT '模板页名字'")
    private String title;

    @Column(columnDefinition = " varchar(32)  COMMENT '模板id'")
    private String templateId;

    @Column(name = "staticCode", columnDefinition = " varchar(32)  COMMENT '静态资源码'")
    private String staticCode;

    @Column(columnDefinition = " varchar(255)  COMMENT '封面图片'")
    private String coverURL;

    @Column(columnDefinition = " int default 1  COMMENT '能布局照片的数量'")
    private Integer capacity;

    @Column(columnDefinition = " int default 0  COMMENT '请求数量'")
    private Integer visitor;

    @Column(columnDefinition = " int default 5000  COMMENT '默认自动翻页时间'")
    private Integer autoDuration;

    @Column(columnDefinition = " bit DEFAULT 0 COMMENT '能否做封面'")
    private Boolean coverable = false;
}
